<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <h3>基础信息</h3>
    <hr>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">招生类型:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[stu_type]', $stu_types, $row['stu_type'], ['class'=>'form-control selectpicker',
            'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="name" name="row[name]" value="{$row.name}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label for="id_type" class="control-label col-xs-12 col-sm-2">证件类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="id_type" name="row[id_type]" value="{$row.id_type}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label for="id_code" class="control-label col-xs-12 col-sm-2">证件号码:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="id_code" name="row[id_code]" value="{$row.id_code}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">性别:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[sex]', $sex_types, $row['sex'], ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label for="birthday" class="control-label col-xs-12 col-sm-2">生日:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="birthday" name="row[birthday]" value="{$row.birthday}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="mobile" class="control-label col-xs-12 col-sm-2">手机:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" value="{$row.mobile}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">民族:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nation" name="row[nation]" value="{$row.nation}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">政治面貌:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="political" name="row[political]" value="{$row.political}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">户籍类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="hours_type" name="row[hours_type]" value="{$row.hours_type}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="hours_address" class="control-label col-xs-12 col-sm-2">户籍所在地:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="hours_address" name="row[hours_address]" value="{$row.hours_address}"
            />
        </div>
    </div>
    <div class="form-group">
        <label for="delivery_address" class="control-label col-xs-12 col-sm-2">收货地区:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="delivery_address" class="form-control" data-toggle="city-picker" name="row[delivery_address]"
                   type="text"
                   value="{$row.delivery_area}"
                   placeholder="请选择地址" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="addr_detail">详细地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="addr_detail" name="row[addr_detail]" value="{$row.delivery_address}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="occupation_type">职业类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="occupation_type" name="row[occupation_type]" value="{$row.occupation_type}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="occupation">职位:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="occupation" name="row[occupation]" value="{$row.occupation}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="entry">入职时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="entry" name="row[entry]" value="{$row.entry}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="company_address">公司所在地:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="company_address" name="row[company_address]" value="{$row.company_address}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="company_tel">公司联系电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="company_tel" name="row[company_tel]" value="{$row.company_tel}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="company_postcode">邮箱:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="company_postcode" name="row[company_postcode]" value="{$row.company_postcode}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="emergency_tel">紧急电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="emergency_tel" name="row[emergency_tel]" value="{$row.emergency_tel}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="picture">头像:</label>
        <div class="col-xs-12 col-sm-8" style="display: flex; align-items: center">
            <input type="hidden" class="form-control" id="picture" name="row[picture]"  value="{$row.picture}"/>
            <img class="stu-img img-responsive" onerror="this.src = '/assets/img/info.svg'" src="{$row.picture}" alt="" width="100" height="100">
            <button type="button" id="faupload-picture" class="faupload" data-input-id="picture" style="height: 40px; margin-left: 8px">
                <i class="fa fa-upload"></i> {:__('Upload')}
            </button>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="landline">座机:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="landline" name="row[landline]" value="{$row.landline}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="email">邮箱:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="email" name="row[email]" value="{$row.email}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="qq">QQ号:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="qq" name="row[qq]" value="{$row.qq}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="wechat">微信:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="wechat" name="row[wechat]"  value="{$row.wechat}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="work_address">工作单位:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="work_address" name="row[work_address]" value="{$row.work_address}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="is_marriage">婚姻情况:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="is_marriage" name="row[is_marriage]" value="{$row.is_marriage}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="remark">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="remark" name="row[remark]" value="{$row.remark}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <h3>学历信息</h3>
    <hr>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="old_edu_type">原学历:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="old_edu_type" name="row[old_edu_type]" value="{$sedu.old_edu_type}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="old_edu_name">原毕业学校:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="old_edu_name" name="row[old_edu_name]" value="{$sedu.old_edu_name}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="old_edu_finish">原毕业时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="old_edu_finish" name="row[old_edu_finish]" value="{$sedu.old_edu_finish}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="old_edu_profession">原专业:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="old_edu_profession" name="row[old_edu_profession]" value="{$sedu.old_edu_profession}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="old_edu_finish_code">原毕业证编号:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="old_edu_finish_code" name="row[old_edu_finish_code]" value="{$sedu.old_edu_finish_code}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否电大毕业:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_tv_finish]', ['normal'=>__('是'), 'hidden'=>__('否')], $sedu['is_tv_finish'])}
        </div>
    </div>
    <h3>报读信息</h3>
    <hr>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">报考层次:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[read_level]', $read_level_info, $sri['read_level'], ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">入学形式:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[enter_way]', $enter_way_info, $sri['enter_way'], ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="enter_grade">入学年级:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="enter_grade" name="row[enter_grade]" value="{$sri.enter_grade}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="first_volunteer">第一志愿:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="first_volunteer" name="row[first_volunteer]" value="{$sri.first_volunteer}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="second_volunteer">第二志愿:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="second_volunteer" name="row[second_volunteer]" value="{$sri.second_volunteer}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="bonus_point_type">加分类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="bonus_point_type" name="row[bonus_point_type]" value="{$sri.bonus_point_type}"/>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">加分类型:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[bonus_point_type]', $point_way, $sri['bonus_point_type'], ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="bonus_point">加分数:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="bonus_point" name="row[bonus_point]" value="{$sri.bonus_point}"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="fee_type">费用类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="fee_type" name="row[fee_type]" value="{$sri.fee_type}"/>
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
